﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterProf.master" AutoEventWireup="true" CodeFile="p_Oceni.aspx.cs" Inherits="p_Oceni" MaintainScrollPositionOnPostback="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 299px;
        }
    </style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Label ID="lblIme" runat="server" Text=""></asp:Label><br />
    <asp:Label ID="lblPrezime" runat="server" Text=""></asp:Label><br />
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">

<h2><span class="blue">Оцени</span></h2>

    <h4>Предмети:</h4><asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>

    <table>
        <tr><td><asp:ListBox ID="lstPredmeti" runat="server" AutoPostBack="True" Width="500px" 
        Height="150px" onselectedindexchanged="lstPredmeti_SelectedIndexChanged"></asp:ListBox></td>
        <td align="center" class="style1"><asp:Label ID="lblInfo" runat="server"></asp:Label></td></tr>
    </table>
    
    <br />
    <br />
        
    <table><tr>
        <td><asp:GridView ID="gvStudenti" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" ForeColor="#333333" GridLines="None" Width="500px" 
            onrowcancelingedit="gvStudenti_RowCancelingEdit" 
            onrowediting="gvStudenti_RowEditing" 
            onrowupdating="gvStudenti_RowUpdating">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="Ime" HeaderText="Име" ReadOnly="True" />
                <asp:BoundField DataField="Prezime" HeaderText="Презиме" ReadOnly="True" />
                <asp:BoundField DataField="indeks" HeaderText="Индекс" ReadOnly="True" />  
                <asp:BoundField DataField="ocena" HeaderText="Оцена" />  
                <asp:CommandField ButtonType="Button" CancelText="Откажи" EditText="Промени" 
                    ShowEditButton="True" UpdateText="Промени" HeaderText="Промени оцена" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#299DCA" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView></td>

        <td><asp:GridView ID="gvLab" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" ForeColor="#333333" GridLines="None" Width="300px" 
            onrowcancelingedit="gvLab_RowCancelingEdit" 
            onrowediting="gvLab_RowEditing" 
            onrowupdating="gvLab_RowUpdating" HorizontalAlign="Center">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:CheckBoxField DataField="eden" HeaderText="1"  />
                <asp:CheckBoxField DataField="dva" HeaderText="2" />
                <asp:CheckBoxField DataField="tri" HeaderText="3" />
                <asp:CheckBoxField DataField="cetiri" HeaderText="4" />
                <asp:CheckBoxField DataField="pet" HeaderText="5"/>
                <asp:CheckBoxField DataField="sest" HeaderText="6" />
                <asp:CheckBoxField DataField="sedum" HeaderText="7"/>
                <asp:CommandField ButtonType="Button" CancelText="Откажи" EditText="Промени" 
                    HeaderText="Промени лаб" ShowEditButton="True" UpdateText="Промени" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#299DCA" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>   </td> 
    </tr></table>
    </ContentTemplate>
    </asp:UpdatePanel>
    </asp:Content>

